export default function wxConfig() {
   $.ajax({
     url: 'http://wx.yuyou100.com/wechat/config?signatureUrl=' + encodeURIComponent(encodeURIComponent(window.location.href.split('#')[0])),
    dataType: 'json',
    success: function (data) {
      wx.config({
        debug: false,
        appId: data.appId,
        timestamp: data.timestamp,
        nonceStr: data.nonceStr,
        signature: data.signature,
        jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline','checkJsApi']
      });
      wx.error(function (res) {
      });
    }
  });


}